#pragma once

#include<iostream>

using namespace std;

class Date
{
public:
	friend ostream& operator<<(ostream& out, const Date& d);
	Date(int year = 0, int month = 0, int day = 0)
	{
		_year = year;
		_month = month;
		_day = day;
	}

	void Print()
	{
		cout << _year << "-" << _month << "-" << _day << endl;
	}

	Date(const Date& d)
	{
		_year = d._year;
		_month = d._month;
		_day = d._day;
	}

	void operator<<(ostream& out);
	void operator>>(istream& in);

	~Date()
	{}

private:
	int _year;
	int _month;
	int _day;
};

ostream& operator<<(ostream& out, const Date& d);
